package com.joinlabs.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Log {
    private Long logId;

    private User user;

    private String authorName;

    private String logTitle;

    private String logGuide;

    private String logContent;

    private String logType;

    private Date logTime;

    private Long logReadnum;

    private String logSource;

    private Long logSharenum;

    private Long logZannum;

    private Long logCommentnum;

    private String logImgpath;
    private List<Img> imglist;

    public List<Img> getImglist() {
		return imglist;
	}

	public void setImglist(List<Img> imglist) {
		this.imglist = imglist;
	}

	public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

   

    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName == null ? null : authorName.trim();
    }

    public String getLogTitle() {
        return logTitle;
    }

    public void setLogTitle(String logTitle) {
        this.logTitle = logTitle == null ? null : logTitle.trim();
    }

    public String getLogGuide() {
        return logGuide;
    }

    public void setLogGuide(String logGuide) {
        this.logGuide = logGuide == null ? null : logGuide.trim();
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent == null ? null : logContent.trim();
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType == null ? null : logType.trim();
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
    public String getLogTimestr() {
    	return sdf.format(getLogTime());
    }

    public Long getLogReadnum() {
        return logReadnum;
    }

    public void setLogReadnum(Long logReadnum) {
        this.logReadnum = logReadnum;
    }

    public String getLogSource() {
        return logSource;
    }

    public void setLogSource(String logSource) {
        this.logSource = logSource == null ? null : logSource.trim();
    }

    public Long getLogSharenum() {
        return logSharenum;
    }

    public void setLogSharenum(Long logSharenum) {
        this.logSharenum = logSharenum;
    }

    public Long getLogZannum() {
        return logZannum;
    }

    public void setLogZannum(Long logZannum) {
        this.logZannum = logZannum;
    }

    public Long getLogCommentnum() {
        return logCommentnum;
    }

    public void setLogCommentnum(Long logCommentnum) {
        this.logCommentnum = logCommentnum;
    }

    public String getLogImgpath() {
        return logImgpath;
    }

    public void setLogImgpath(String logImgpath) {
        this.logImgpath = logImgpath == null ? null : logImgpath.trim();
    }

	@Override
	public String toString() {
		return "Log [logId=" + logId + ", user=" + user + ", authorName=" + authorName + ", logTitle=" + logTitle
				+ ", logGuide=" + logGuide + ", logContent=" + logContent + ", logType=" + logType + ", logTime="
				+ logTime + ", logReadnum=" + logReadnum + ", logSource=" + logSource + ", logSharenum=" + logSharenum
				+ ", logZannum=" + logZannum + ", logCommentnum=" + logCommentnum + ", logImgpath=" + logImgpath
				+ ", imglist=" + imglist + ", sdf=" + sdf + "]";
	}



	
    
}